import Home from '@/components/layout/Home'
import Index from '@/components/views/Index'

const NotFound = () =>
	import('@/components/pages/NotFound');
const Register = () =>
	import('@/components/pages/Register');
const E404 = () =>
	import('@/components/pages/E404');
const Login = () =>
	import('@/components/pages/Login');

const Filter = () =>
	import('@/components/pages/Filter');
const Lock = () =>
	import('@/components/layout/base/Lock');
// 权限
const Menu = () =>
	import('@/components/views/upms/Menu'); //菜单管理
const Channel = () =>
	import('@/components/views/organization/Channel'); //菜单管理
const Clique = () =>
	import('@/components/views/organization/Clique'); //班级管理
const Permission = () =>
	import('@/components/views/upms/Permission');
const LoginLog = () =>
	import('@/components/views/log/LoginLog'); //
const OperationLog = () =>
	import('@/components/views/log/OperationLog'); //
const School = () =>
	import('@/components/views/base/School'); //学校管理
const Grade = () =>
	import('@/components/views/base/Grade'); //雪嶺段管理
const Teacher = () =>
	import('@/components/views/base/Teacher'); //教师管理
const Student = () =>
	import('@/components/views/base/Student'); //教师管理
const Clazz = () =>
	import('@/components/views/base/Clazz'); //班级管理
const SchoolBrief = () =>
	import('@/components/views/base/SchoolBrief'); //班级管理
const Report = () =>
	import('@/components/views/report/Report'); //报告管理
const Device = () =>
	import('@/components/views/device/Device'); //报告管理
const Terminal = () =>
	import('@/components/views/device/Terminal'); //道闸管理
const AtdConfig = () =>
	import('@/components/views/atd/AtdConfig'); //报告管理
const GateRecords = () =>
	import('@/components/views/atd/GateRecords'); //报告管理
const StuLeave = () =>
	import('@/components/views/teacher/StuLeave'); //学生请假查询
const Feedback = () =>
	import('@/components/views/teacher/Feedback'); //家长反馈
const PickDeliver = () =>
	import('@/components/views/teacher/PickDeliver'); //接送记录
const TeacherLeave = () =>
	import('@/components/views/teacher/TeacherLeave'); //教师请假
const NoticeFeedback = () =>
	import('@/components/views/msg/NoticeFeedback'); //通知阅读反馈
const Notice = () =>
	import('@/components/views/msg/Notice'); //教师请假
const OutApply = () =>
	import('@/components/views/teacher/OutApply'); //教师请假
const KinsfolkJudge = () =>
	import('@/components/views/judge/KinsfolkJudge'); //教师请假
const StuConfig = () =>
	import('@/components/views/atd/StuConfig'); //教师请假
const AtdRecords = () =>
	import('@/components/views/atd/AtdRecords'); //教师请假
const Kinsfolk = () =>
	import('@/components/views/base/Kinsfolk'); //教师请假
const FaceJudge = () =>
	import('@/components/views/judge/FaceJudge'); //教师请假
const Camera = () =>
	import('@/components/views/teacher/Camera'); //教师请假
const Product = () =>
	import('@/components/views/money/Product'); //收费项目
const Apk = () =>
	import('@/components/views/device/Apk'); //APk
const Order = () =>
	import('@/components/views/money/Order'); //Order
const Term = () =>
	import('@/components/views/base/Term'); //Order
const Equipment = () =>
	import('@/components/views/device/Equipment'); //Order
const Rlzj = () =>
  import('@/components/views/device/rlzj'); //Order
const StudentRecord = () =>
	import('@/components/views/atd/StudentRecord'); //Order
const Food = () =>
	import('@/components/views/food/Food'); //Order
const Cookbook = () =>
	import('@/components/views/food/Cookbook'); //Order
const HeightRecord = () =>
	import('@/components/views/base/HeightRecord'); //Order
const HeightRecordDetail = () =>
	import('@/components/views/base/HeightRecordDetail'); //Order
const routes = [{
		path: '/',
		name: 'home',
		component: Home,
		redirect: {
			name: '首页'
		},
		children: [{
				path: '/index',
				name: '首页',
				component: Index,
				icon: 'icon-wujiaoxing',
				level: 1,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/menu',
				name: '菜单管理',
				component: Menu,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			}, {
				path: '/channel',
				name: '组织管理',
				component: Channel,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			}, {
				path: '/clique',
				name: '集团管理',
				component: Clique,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/kindergarten',
				name: '学校管理',
				component: School,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/grade',
				name: '学龄段管理',
				component: Grade,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/teacher',
				name: '教师管理',
				component: Teacher,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/student',
				name: '宝贝管理',
				component: Student,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/kinsfolk',
				name: '家长管理',
				component: Kinsfolk,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/clazz',
				name: '班级管理',
				component: Clazz,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/school-brief',
				name: '学校简介管理',
				component: SchoolBrief,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/report',
				name: '报告管理',
				component: Report,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/uh02-device',
				name: '晨检机设备',
				component: Device,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/atd-terminal',
				name: '道闸设备管理',
				component: Terminal,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/atd-config',
				name: '教师考勤设置',
				component: AtdConfig,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/gate-record',
				name: '道闸记录',
				component: GateRecords,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/permission',
				name: '权限管理',
				component: Permission,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/login-log',
				name: '登陆日志',
				component: LoginLog,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/operation-log',
				name: '操作日志',
				component: OperationLog,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},

			{
				path: '/filter',
				name: 'filter',
				component: Filter,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/notFound',
				name: 'notFound',
				component: NotFound,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/student-leave',
				name: '幼儿请假查询',
				component: StuLeave,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/feedback',
				name: '家长反馈',
				component: Feedback,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/pick-deliver-back',
				name: '接送记录',
				component: PickDeliver,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/teacher-Leave',
				name: '教师请假',
				component: TeacherLeave,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/notice',
				name: '信息发布',
				component: Notice,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			}, {
				path: '/notice-feedback',
				name: '阅读反馈',
				component: NoticeFeedback,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/out-apply',
				name: '离园申请',
				component: OutApply,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/kinsfolk-judge',
				name: '家长绑定审核',
				component: KinsfolkJudge,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/stu-config',
				name: '学生出入园',
				component: StuConfig,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/tea-records',
				name: '考勤列表',
				component: AtdRecords,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/face-judge',
				name: '人脸审核',
				component: FaceJudge,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/camera',
				name: '摄像头管理',
				component: Camera,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/product',
				name: '收费金额',
				component: Product,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/apk',
				name: 'APK管理',
				component: Apk,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/pay-order',
				name: '交易记录',
				component: Order,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/term',
				name: '学期管理',
				component: Term,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/show-terminal',
				name: '显示屏',
				component: Equipment,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/pick-deliver',
				name: '宝贝进出记录',
				component: StudentRecord,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/food',
				name: '菜色管理',
				component: Food,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/cookbook',
				name: '周食谱',
				component: Cookbook,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/height-record',
				name: '身高记录',
				component: HeightRecord,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
			{
				path: '/height-record-detail',
				name: '身高记录详情',
				component: HeightRecordDetail,
				meta: {
					requiresAuth: true // 是否需要登录
				}
			},
      {
        path: '/rlzj',
        name: '人脸闸机管理',
        component: Rlzj,
        meta: {
          requiresAuth: true // 是否需要登录
        }
      },
		]
	},
	{
		path: '/login',
		name: 'login',
		component: Login
	},
	{
		path: '/register',
		name: 'register',
		component: Register
	},
	{
		path: '/error404',
		name: 'error404',
		component: E404
	},
	{
		path: '/lock',
		name: 'lock',
		component: Lock
	},
	{
		path: '*',
		redirect: '/notFound'
	}

]

export default routes
